from twisted.application import service, internet
from twisted.protocols import http
from twisted.internet import protocol
from twisted.internet import reactor

from activist.web.Site import Site
from activist.web.ActivistHTTPFactory import createFactory

from activist.DataStore import DataStore
DataStore.load()
    
application = service.Application("activist")

myFactory = createFactory()

internet.TCPServer(8080, myFactory).setServiceParent(application)

#reactor.listenTCP(8080,Site())
#reactor.run()
